package org.giovanolli.mumi.controller.business;

import org.giovanolli.mumi.controller.AbstractModel;
import org.giovanolli.mumi.entities.Title;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Controller;

/**
 * The Class TitleModel.
 */
@Controller("titleModel")
@Scope(value = "flow", proxyMode = ScopedProxyMode.TARGET_CLASS)
public class TitleModel extends AbstractModel<Title> implements Cloneable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3664093136730281152L;

	/** The sort property. */
	private String sortProperty;

	/** The name. */
	private String name;

	/**
	 * Instantiates a new title model.
	 */
	public TitleModel() {
		return;
	}

	/**
	 * Gets the name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.controller.AbstractModel#getPageNumber()
	 */
	public Integer getPageNumber() {
		return pageNumber;
	}

	/**
	 * Gets the sort property.
	 * 
	 * @return the sort property
	 */
	public String getSortProperty() {
		return sortProperty;
	}

	/**
	 * Sets the name.
	 * 
	 * @param name
	 *            the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.controller.AbstractModel#setPageNumber(java.lang. Integer)
	 */
	public void setPageNumber(Integer pageNumber) {
		this.pageNumber = pageNumber;
	}

	/**
	 * Sets the sort property.
	 * 
	 * @param sortProperty
	 *            the new sort property
	 */
	public void setSortProperty(String sortProperty) {
		this.sortProperty = sortProperty;
	}

}
